package com.city.cmsservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created with IntelliJ IDEA.
 * User: Cheng
 * Date: 2020/9/20
 * Time: 16:08
 * Description: No Description
 *
 *
 * 为了百度搜索的精准度和E啥值，数据需要更快的返回，否者会影响搜索的排名，所以
 * 需要把首页的所有数据放在同一个服务器上，通过内存数据库redis更快的返回给前端
 * 进行展示
 */
@SpringBootApplication
@ComponentScan({"com.city"})
@EnableDiscoveryClient
@MapperScan("com.city.cmsservice.mapper")
public class CmsApplication {
    public static void main(String[] args) {
        SpringApplication.run(CmsApplication.class,args);
    }
}
